package com.ag.admin.web.tags;

import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import com.ag.common.EventUtil;
import com.ag.zhh.service.EventStatusService;

/**
 * 假设事件正在处理中，则按钮不显示
 * 
 * @author Administrator
 * 
 */
public class CopyOfEmergencyTag extends TagSupport {
	private static final long serialVersionUID = -1093352839301890133L;

	@Override
	public int doStartTag() throws JspException {
		HttpSession session = pageContext.getSession();
		if (!EventStatusService.EVENT_STATUS_SJCHZH_ING.equals(session
				.getAttribute(EventUtil.PROCESSING_EVENT_STATUS))) {
			return EVAL_BODY_INCLUDE;
		}
		return SKIP_BODY;
	}
}
